//
//  DataService.m
//  HWmovie
//
//  Created by Mac on 15/7/21.
//  Copyright (c) 2015年 杨梦佳. All rights reserved.
//

#import "DataService.h"

@implementation DataService

+ (id)loadData:(NSString *)string
{
    
    NSString *path=[[NSBundle mainBundle] pathForResource:string ofType:nil];
    NSData *data=[NSData dataWithContentsOfFile:path];
    id arrayOrDic=[NSJSONSerialization JSONObjectWithData:data options: NSJSONReadingMutableContainers error:nil];
    
    
    
    
    
    
    return arrayOrDic;
}

@end
